package main

import (
	"fmt"
	"strings"
)

func main() {
	//a := []int{1, 2, 3, 4, 5, 6, 7,8}
	//cut := 2;
	//p := len(a) / cut
	//for i := 0; i < p; i++ {
	//	fmt.Println(a[i*cut : cut*(i+1)])
	//}
	//if len(a)%cut > 0 {
	//	fmt.Println(a[cut*p : len(a)])
	//}
	//destPath := "C_00107801_20190122_171029.txt"
	//des := strings.Split(strings.Replace(destPath, ".txt", "", -1), "_")
	//fileTag := fmt.Sprintf("%v%v%v", des[1], des[2], des[3])
	//fmt.Println(fileTag)
	var a string
	lastIndex(a)

}

func lastIndex(destPath string) {
	lastIndex := strings.LastIndex(destPath, "/")
	fmt.Println(lastIndex)
	fmt.Println(destPath[lastIndex:])
}

func test(destPth string) {
	if strings.Contains(destPth, "C_") {
		fmt.Println(destPth)
	}

}
